package com.androidgame.framework.impl;

import android.graphics.Bitmap;

import com.androidgame.framework.Graphics.PixmapFormat;
import com.androidgame.framework.Pixmap;

//stores a bitmap image
public class AndroidPixmap implements Pixmap 
{
	Bitmap bitmap;
	PixmapFormat format;
	
	public AndroidPixmap(Bitmap bitmap, PixmapFormat format) 
	{
		this.bitmap = bitmap;
		this.format = format;
	}
	
	public int getWidth() 
	{
		return bitmap.getWidth();
	}
	
	public int getHeight() 
	{
		return bitmap.getHeight();
	}
	
	public PixmapFormat getFormat() 
	{
		return format;
	}
	
	public void dispose() 
	{
		bitmap.recycle();
	}
        
}
